<?php

  
  class dataBaseDao{
      
      private $db;
      
      function getDb(){
          require_once(ROOT_PATH.'ty/database_conf.php');
          require_once(ROOT_PATH.'ty/db.php');
          if(isset($this->db)){
             return $this->db;
          }
          
          $this->db = new Db($DataBaseConf);
          return $this->db;
      }
      
      
  }
?>
